<?php /* Smarty version Smarty-3.0.7, created on 2011-08-26 17:52:34
         compiled from "components/filter/filtertableimposition.tpl" */ ?>
<?php /*%%SmartyHeaderCode:12711671234e57c1422148f4-81140158%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c087bd214a432972a94dda5c0822cd7b49b24ed7' => 
    array (
      0 => 'components/filter/filtertableimposition.tpl',
      1 => 1314373695,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '12711671234e57c1422148f4-81140158',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!$_smarty_tpl->getVariable('list')->value['ajax']){?>
	<?php echo $_smarty_tpl->getVariable('borderopen')->value;?>

			<div class="scrolldiv">
			<table id="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
" name="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
" class="filtertable">
				<thead>
					<tr>
						<th <?php if (!$_smarty_tpl->getVariable('list')->value['showcb']){?>class="hide"<?php }?>></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
					</tr>
					<tr>
						<th <?php if (!$_smarty_tpl->getVariable('list')->value['showcb']){?>class="hide"<?php }?>><input name="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_cb_<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
" id="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_cb_<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
" type="checkbox" value="-1" onclick="toggleCB('<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
','<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
', this.checked); fillSelected('<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
',true,this.checked);"/></th>
						<th colspan="2"><?php echo $_smarty_tpl->getVariable('list')->value['lblcreationdate'];?>
</th>
						<th colspan="2"><?php echo $_smarty_tpl->getVariable('list')->value['lblimpositiontype'];?>
</th>
						<th colspan="3"><?php echo $_smarty_tpl->getVariable('list')->value['lblaccounts'];?>
</th>
						<th><?php echo $_smarty_tpl->getVariable('list')->value['lblexpdate'];?>
</th>
						<th><?php echo $_smarty_tpl->getVariable('list')->value['lblpayed'];?>
</th>
					</tr>
					<tr>
						<th style="width:10px"></th>
						<th colspan="2"><?php echo $_smarty_tpl->getVariable('list')->value['lblamount'];?>
</th>
						<th colspan="2"><?php echo $_smarty_tpl->getVariable('list')->value['lblpayedpercent'];?>
</th>
						<th><?php echo $_smarty_tpl->getVariable('list')->value['lblinvoicedate'];?>
</th>
						<th colspan="3"><?php echo $_smarty_tpl->getVariable('list')->value['lblinvoicenumber'];?>
</th>
					</tr>
				</thead>
				<tbody id="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_search_body">
<?php }?>
				<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(0, null, null);?>
				<?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('rows')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
?>
					<?php if (($_smarty_tpl->getVariable('i')->value%2==0)){?>
						<?php $_smarty_tpl->tpl_vars['thisrowid'] = new Smarty_variable($_smarty_tpl->tpl_vars['row']->value['id'], null, null);?>
						<tr id="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_row_<?php echo $_smarty_tpl->getVariable('i')->value;?>
" height="15px" onclick="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_impfilter.rowClick(this, $('<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_row_<?php echo $_smarty_tpl->getVariable('i')->value+1;?>
'), <?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
);" name="<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
" onmouseover="highlightDoubleRow(this, $('<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_row_<?php echo $_smarty_tpl->getVariable('i')->value+1;?>
'))" onmouseout="unhighlightDoubleRow(this, $('<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_row_<?php echo $_smarty_tpl->getVariable('i')->value+1;?>
'))"  <?php if (($_smarty_tpl->getVariable('i')->value%4==2||$_smarty_tpl->getVariable('i')->value%4==3)){?> class="oddrow"<?php }?>>
							<td <?php if (!$_smarty_tpl->getVariable('list')->value['showcb']){?>class="hide"<?php }?>><input name="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_cb_<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
<?php echo $_smarty_tpl->getVariable('i')->value;?>
" id="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_cb_<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
<?php echo $_smarty_tpl->getVariable('i')->value;?>
" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
" onclick="this.checked=(this.checked ? false : true);" /></td>
							<td colspan="2"><?php echo $_smarty_tpl->tpl_vars['row']->value['creationdate'];?>
</td>
							<td colspan="2"><?php echo $_smarty_tpl->tpl_vars['row']->value['impositiontype'];?>
</td>
							<td colspan="3"><?php echo $_smarty_tpl->tpl_vars['row']->value['accounts'];?>
</td>
							<td><?php echo $_smarty_tpl->tpl_vars['row']->value['expdate'];?>
</td>
							<td><?php echo $_smarty_tpl->tpl_vars['row']->value['payed'];?>
</td>
					<?php }else{ ?>
						<tr id="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_row_<?php echo $_smarty_tpl->getVariable('i')->value;?>
" height="15px" onclick="<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_impfilter.rowClick(this, $('<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_row_<?php echo $_smarty_tpl->getVariable('i')->value-1;?>
'), <?php echo $_smarty_tpl->getVariable('thisrowid')->value;?>
);" name="<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
"  onmouseover="highlightDoubleRow(this, $('<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_row_<?php echo $_smarty_tpl->getVariable('i')->value-1;?>
'))" onmouseout="unhighlightDoubleRow(this, $('<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_row_<?php echo $_smarty_tpl->getVariable('i')->value-1;?>
'))" <?php if (($_smarty_tpl->getVariable('i')->value%4==2||$_smarty_tpl->getVariable('i')->value%4==3)){?> class="oddrow"<?php }?>>
							<td style="width:10px"></td>
							<td colspan="2"><?php echo $_smarty_tpl->tpl_vars['row']->value['amount'];?>
</td>
							<td colspan="2"><?php echo $_smarty_tpl->tpl_vars['row']->value['payedpercent'];?>
</td>
							<td><?php echo $_smarty_tpl->tpl_vars['row']->value['invoicedate'];?>
</td>
							<td colspan="3"><?php echo $_smarty_tpl->tpl_vars['row']->value['invoicenumber'];?>
</td>
					<?php }?>
					</tr>
					<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable($_smarty_tpl->getVariable('i')->value+1, null, null);?>
				<?php }} ?>
<?php if (!$_smarty_tpl->getVariable('list')->value['ajax']){?>
				</tbody>
			</table>
			</div>
			<?php if ($_smarty_tpl->getVariable('list')->value['buttons']){?>
				<br/>
			<?php }?>
	<?php echo $_smarty_tpl->getVariable('borderclose')->value;?>

<script language="javascript">
	//alert($("<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
").rows.length);
	//ScrollableTable ($("<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
_tbl_<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
"), ((Math.min(4, <?php echo count($_smarty_tpl->getVariable('rows')->value)*2;?>
))*34)+27, 800, 4);
	setRecordCount("<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
","<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
", 0, true);
</script>
<?php }?>